package com.mdb.open.common.enums;

import com.mdb.bc.api.enums.ApiEnum;

/**
 * @author liuyi
 * @date 2019/06/24
 **/
//@SyncDict(code = "ret_code", expo_modules = {"product"})
public enum TradeOpenRetCodeEnum implements ApiEnum<String> {

    //PD,
    PRODUCT_NOT_OPEN(App.PRODUCT + "1001", "产品未开通！"),
    OPEN_API_NOT_OPEN(App.PRODUCT + "1002", "暂未开通开放接口功能！"),
    PRODUCT_STATUS_ERROR(App.PRODUCT + "1003", "产品状态异常！"),
    MERCHANT_LIMIT_EMPTY_ERROR(App.PRODUCT + "1004", "商户额度未设置"),
    CUST_PROD_CONF_EMPTY_ERROR(App.PRODUCT + "1005", "客户产品配置为空"),
    CUST_PROD_LIMIT_EMPTY_ERROR(App.PRODUCT + "1006", "客户产品额度未设置"),
    CUST_PROD_LIMIT_ALREADY_EXIST(App.PRODUCT + "1009", "客户产品额度已存在"),
    CUST_PROD_RATE_EMPTY_ERROR(App.PRODUCT + "1007", "客户产品费率未设置"),
    CUST_PROD_EMPTY_ERROR(App.PRODUCT + "1008", "客户产品开通信息未找到"),
    DOCKING_TYPE_PARAM_ERROR(App.PRODUCT + "1010", "对接方式参数错误！"),
    PD_NO_RESULT(App.PRODUCT + "1011", "查无数据"),
    LIMIT_ADD_CUST_PROD_STATUS_ERROR(App.PRODUCT + "1101", "只有申请中的客户可以创建额度"),

    LIMIT_ME_SEQ_NO_NOT_EXIST(App.PRODUCT + "1102", "商户额度使用序号不存在"),
    LIMIT_CU_SEQ_NO_NOT_EXIST(App.PRODUCT + "1103", "客户额度使用序号不存在"),
    LIMIT_ME_NOT_ENOUGH(App.PRODUCT + "1104", "商户可用额度不足"),
    LIMIT_CU_NOT_ENOUGH(App.PRODUCT + "1105", "客户可用额度不足"),
    LIMIT_SEQ_NO_FROZE_OR_USED(App.PRODUCT + "1106", "使用流水号已被占用或已解冻"),
    LIMIT_SEQ_NO_NOT_USED_STATUS(App.PRODUCT + "1107", "流水号不是已占用状态"),
    LIMIT_ME_RECOVER_BAL_NOT_ENOUGH(App.PRODUCT + "1108", "恢复金额大于商户额度使用记录可恢复金额"),
    LIMIT_CU_RECOVER_BAL_NOT_ENOUGH(App.PRODUCT + "1109", "恢复金额大于客户额度使用记录可恢复金额"),



    //CE开头 内容平台错误码
    FILE_TYPE_NOT_EXIST(App.CONTENT + "1001", "文件类型不存在!"),
    INVALID_SIGNATURE(App.CONTENT + "1002", "无效或已过期的文件上传签名!"),
    ACCOUNT_STATUS_EXCEPTION(App.CONTENT + "1003", "文件上传账号异常！"),
    FILE_TYPE_NOT_DEFINE(App.CONTENT + "1004", "文件类型未定义！"),
    CE_OVER_SIZE(App.CONTENT + "1005", "文件过大！"),
    FILE_TYPE_NOT_ALLOWED(App.CONTENT + "1006", "文件类型不允许！"),
    FILE_TYPE_EXIST(App.CONTENT + "1007", "文件类型已存在！"),
    ACCOUNT_EXIST(App.CONTENT + "1008", "账号已存在！"),
    ACCOUNT_NOT_EXIST(App.CONTENT + "1009", "账号不存在！"),
    SECRET_ERROR(App.CONTENT + "1010", "文件上传秘钥错误！"),
    CE_NOT_ALLOWED_EMPTY(App.CONTENT+"1011","文件不能为空"),
    CE_ORIGIN_VALID(App.CONTENT + "1012", "来源非法！"),
    ;

    TradeOpenRetCodeEnum(String value, String text) {
        this.value = value;
        this.text = text;
    }

    private String value;

    private String text;

    @Override
    public String getValue() {
        return value;
    }

    @Override
    public String getText() {
        return text;
    }

}

